package com.wanter.boot01.demo.service.impl;

import com.wanter.boot01.demo.entity.Demo;
import com.wanter.boot01.demo.mapper.DemoMapper;
import com.wanter.boot01.demo.service.DemoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class DemoServiceImpl implements DemoService {
    @Resource
    private DemoMapper demoMapper;
    @Override
    public List<Demo> findAll() {
        return demoMapper.findAll();
    }
}
